var img = null
var data = null
console.log("ssad")
$.getJSON("JSON/yangzhengma.json", function(e) {
    data = e
    console.log(data)
})

function imgs() {
    for (var i = 0; i < data.lenght; i++) {

    }
}

function addspicture(e) {
    //确定分页
    // var pagesize = Math.ceil(datas.length / coumt)
    var htmls = ""
        // console.log("e")
        // console.log(data.lenght)
    var suiji = Math.floor(Math.random() * 5)
    console.log("随机数" + suiji)
    console.log(data[suiji])
    htmls += `<img src="yanzheng/${data[suiji].img}" style="width: 100%;height: 100%;"/>`
    document.getElementById("imgssss").innerHTML = htmls

}
window.onload = function() {
    addspicture(0)
}